Method of implementing structured and non-structured data in xml document

ABSTRACT

The inventions generally relate to methods of implementing structured and non-structured data in an XML document including, designing a source HTML document that contains form tags, designing a structured source XML document using user-defined tags, designing a web form document by mapping absolute path variables of the user-defined tags into the source HTML document, automatically creating an XSL document by XSLT-processing the web form document, inputting structured data and non-structured data to the web form document, automatically creating a new XML document by replacing the absolute path variable of the user-defined tag with the structured data and the non-structured data input to the web form document and automatically displaying the content of the new XML document by merging the new XML document and the XSL document.

CROSS-REFERENCE TO RELATED APPLICATION

This application is the Section 371 National Stage of PCT/KR2013/003672 filed Apr. 29, 2013, the entirety of which is incorporated herein by reference to the extent permitted by law. This application claims the benefit of priority to Korean Patent Application No. KR 10-2012-0075954, filed Jul. 12, 2012 the entirety of which is incorporated herein by reference to the extent permitted by law.

BACKGROUND OF THE INVENTION

The present invention relates, in general, to a method of implementing structured and non-structured data in an XML document and, more particularly, to a method of implementing both structured data stored in a database and non-structured data stored in a legacy document in an XML document using XML replacement technology.

Internet interconnects many communication networks around the world, and computers connected to the Internet use a communication protocol called Transmission Control Protocol/Internet Protocol (TCP/IP) to communicate to each other.

Also, Hyper Text Markup Language (HTML) is one of data formats used on World Wide Web (WWW) and is a method of writing a hypermedia document. In other words, HTML defines a logical structure of hypertext using a standard document format called Standard Generalized Markup Language (SGML), and HTML is stored as a text file format.

To see a specific web page using a web browser such as Internet Explorer, a user has to input an address of Uniform Resource Locator (URL) of the web page. Accordingly, if the user does not know the address of URL of the web page, it is difficult to access the target document.

Consequently, software is needed to enable a user to search for any desired information among a huge amount of information on the Internet even if the user does not know the URL of each Internet site, and the software is called a search engine.

A search engine operates as follows. A search robot or a prescribed program that is called a spider program browses through multiple sites on the Internet, and stores information, previously collected from the web sites, on a database. When a user inputs a specific search word, a web site where contents corresponding to the search words are stored is selected and displayed. More specifically, when receiving a search request through keyword input from a user computer, the search engine operates a spider program through Common Gateway Interface (CGI).

CGI is a standard interface between an external program and a web server, which receives a data from a web browser installed in a user's computer as input; runs an external program according to the input data; and receives results from the execution of the external program. The operated spider program receives search results from an index database storing addresses of URL, information of various websites, and the like; converts the search results into HTML format; and transmits the converted HTML documents to the user's computer.

In the beginning of the Internet service, at the search engine side, both Internet sites and web documents were retrieved and classified, and a database was constructed using the classified data. Accordingly, when searching for specific data, these search engines used a directory search method that approaches the specific data by subdividing subject classification, which was previously configured according to a user's subject search or user's menu search.

However, rapid growth in the size of WWW led to a sudden increase in the number of Internet sites, and thus it is not easy to effectively search for desired information using the directory search method. In other words, in accordance with the rapid growth in the size of WWW, search engines have to expand data amount. However, the method of the existing search engines, that is, checking a web page and storing data from the web page into a database manually, may not correspond with the growth of WWW.

Consequently, search engines introducing the above mentioned search robot, which provides search service by retrieving and indexing a web page automatically, are developed. These search engines use a keyword (search word) search method. In other words, these search engines search for every web document related to the search word that a user inputs, and provide it to the user's computer. However, the amount of the web pages is so large that the user has to search for the desired content on a display of the search results once again.

On the other hand, XML, an acronym of eXtensible Markup Language, is a next generation Internet document standard that is essentially used in the Internet era. World Wide Web Consortium (W3C) defined XML as an Internet standard document in 1998. The structure of XML is easily understandable by people and easily manageable by machines. Also, XML resolves limitations of HTML for representing Web content and overcomes shortcomings of SGML.

HTML that has been most widely used for representing content on the Internet is appropriate for data representation, but has a limitation in reusing or retrieving documents. Accordingly, to resolve this problem, XML gives attention as a next generation Internet language because XML facilitates the expandability, compatibility, and structuring of information.

On the other hand, information on the Internet is largely divided into structured data and non-structured data. Generally, structured data is stored in a database while non-structured data is stored in a legacy document.

In this case, non-structured data stored in the legacy document is not easy to retrieve compared to structured data in a database. Furthermore, to view the legacy document, as the legacy document should be downloaded to a client computer, a space for storing the document and a dedicated viewer for the document are required.

For example, a method for searching data in the Internet and making a database with the data, applied for Korean Patent Application Publication No. 10-1998-0006152, discloses that a database is separately constructed for a specific field of data and a commercial retrieval service is available using the database. Also, a web browsing system and a web browsing method with adding links data on HTML document based on user's request, applied for Korean Patent Application Publication No. 10-2008-0015282, discloses that user can conveniently and effectively browse and search the Web by selectively adding a link data on an HTML document, which is received from a specific web server by a user's request and is interpreted by a web browser. However, as the above applications convert search results into HTML format and transmit the HTML documents to a user's computer, speed of retrieving data is slowed down. Also, if error occurs during the process of receiving the search results and in the process of converting them into HTML format, inaccurate search results may be displayed and non-structured data may not be stored.

SUMMARY OF THE INVENTION

Accordingly, the present invention has been made keeping in mind the above problems, and an object of the present invention is to provide a method of implementing structured and non-structured data in an XML document, which may quickly implement structured and non-structured data in a dynamic Well Formed XML (eXtensible Markup Language) document not using Document Object Model (DOM) but using XML replacement technology.

In order to accomplish the above object, a method of implementing structured and non-structured data in an XML document according to the present invention includes: designing a source HTML document that contains a form tag; designing a structured source XML document using a user-defined tag; designing a web form document by mapping an absolute path variable of the user-defined tag into the source HTML document; automatically creating an XSL document by XSLT-processing the web form document; inputting structured and non-structured data into the web form document; automatically creating a new XML document by replacing the absolute path variable of the user-defined tag with the structured and non-structured data input in the web form document; and automatically displaying content of the new XML document by merging the new XML document and the XSL document.

Also, in designing the source HTML document, the form tag is an empty form in which data is not contained.

Also, in designing the structured source XML document, using an XML tree structure, the source XML document stores the absolute path variable of the user-defined tag as a user-defined tag value.

Also, in designing the structured source XML document, when writing general data and repeated data, which are structured data of the source XML document, in a user-defined tag value, each type of data is written in different notation in order to distinguish the general data and the repeated data.

Also, in designing the structured source XML document, when structured data of the source XML document is repeated data, the repeated data is written using an attribute in the user-defined tag of the source XML document.

Also, in designing the web form document, the web form document is designed by mapping the absolute path variable of the user-defined tag into the form tag as a data format is designated to the form tag.

Also, designing the web form document includes: a structured data form tag design process for designing a structured data form tag that is mapped into the absolute path variable of the user-defined tag and receives the structured data as input; and a non-structured data form tag design process for designing a non-structured data form tag that is mapped into the absolute path variable of the user-defined tag and receives the non-structured data as input.

Also, in automatically creating the XSL document, the XSL document is connected to the web form document through the absolute path variable of the user-defined tag.

Also, in automatically creating the XSL document, the XSL document is automatically created by an automatic tool for generating an XSL document, which is run on a computer system, when the web form document is saved.

Also, in automatically creating the new XML document, the new XML document is automatically created by an automatic generation engine of XML document, which is run on a server, when structured data and non-structured data is input and stored into the web form document.

Also, automatically creating the new XML document includes: a data substitution format setting process for setting a data substitution format by calculating a substitution value of the structured and non-structured data; a data mapping process for mapping the calculated substitution value of the structured and non-structured data into a value of the absolute path variable of the source XML document; and a new XML document creating process for creating a new XML document by saving the XML source document as the new XML document after replacing the value of the absolute path variable of the source XML document with the calculated substitution value of the structured and non-structured data.

Also, in the data substitution format setting process, the data substitution format includes a structured data substitution format and a non-structured data substitution format, and the structured data substitution format or the non-structured data substitution format includes a general data substitution format and a repeated data substitution format.

Also, in the data substitution format setting process, the data substitution format includes a variable separator, which is in between the absolute path variable of the user defined tag and a value of the absolute path variable, for distinguishing the absolute path variable from the value of the absolute path variable.

Also, in the data substitution format setting process, the value of the absolute path variable is the calculated substitution value of the structured and non-structured data.

Also, in the data substitution format setting process, the data substitution format includes a line separator at the end of the value of the absolute path variable for separating lines.

As described above, a method of implementing structured and non-structured data in an XML document according to the present invention may quickly implement structured and non-structured data in a dynamic Well Formed XML (eXtensible Markup Language) document not using DOM but using XML replacement technology.

Also, an XML document created according to the present invention facilitates searching for structured and non-structured data and may be directly displayed on a web browser. Therefore, a storage space on a client side and a dedicated viewer are not required.

Also, as an XML document created according to the present invention has a small size, a waste of electricity may be reduced, download time may be decreased, and Internet traffic may be reduced.

Additionally, if a W3C standard XML document created according to the present invention is stored in a server on the Internet, for example, in the middleware, it may be directly served to various devices (PC, Tablet PC, Smart Phone, Smart TV, etc) and may be applied to implement cloud computing for N-Screen.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram of a method of implementing structured and non-structured data in an XML document according to the present invention;

FIG. 2 is a block diagram of a step of designing a web form document according to the present invention;

FIG. 3 is a block diagram of a step of creating a new XML document according to the present invention;

FIG. 4 is a schematic view illustrating creating a new XML document by replacing a source XML document with structured and non-structured data;

FIG. 5 is a schematic view illustrating a method of implementing structured and non-structured data in an XML document according to the present invention;

FIG. 6 is a view illustrating a data structure of a source XML document according to the present invention;

FIG. 7 is a view illustrating a web form document according to the present invention;

FIG. 8 is a view illustrating a data format of and a source of a form tag in a web form document;

FIG. 9 is a view illustrating a process of converting a web form document into an XSL document;

FIG. 10 is a view illustrating a structure of an XSL document according to the present invention;

FIG. 11 is a view illustrating structured and non-structured data included in XSL body of FIG. 10;

FIG. 12 is a view illustrating a source code of XSL Head of an XSL document according to the present invention;

FIG. 13 is a view illustrating a source code of XSL Body of an XSL document according to the present invention;

FIG. 14 is a view illustrating a source code of XSL Bottom of an XSL document according to the present invention;

FIG. 15 is a view illustrating a process of converting Self Close Tag of a web form document according to the present invention;

FIGS. 16 to 20 are views illustrating an example of converting a source of a web form document illustrated in FIG. 7;

FIG. 21 is a classification map of a data substitution format;

FIG. 22 is a view illustrating a data substitution format according to the present invention;

FIG. 23 is a view illustrating a process of creating a new XML document using a data substitution format according to the present invention; and

FIG. 24 is a block diagram of a system for application of the present invention.

DESCRIPTION OF THE REFERENCE NUMERALS IN THE DRAWINGS

-   -   S10: step of designing source HTML document     -   S20: step of designing source XML document     -   S30: step of designing web form document     -   S31: structured data form tag design process     -   S32: non-structured data form tag design process     -   S40: step of creating XSL document     -   S50: step of inputting data     -   S60: step of creating new XML document     -   S61: data substitution format setting process     -   S62: data mapping process     -   S63: new XML document creating process     -   S70: step of displaying new XML document

DETAILED DESCRIPTION OF THE PRESENTLY PREFERRED EMBODIMENTS

Hereinafter, exemplary embodiment of the present invention will be described in detail referring to accompanying drawings. Reference should now be made to the drawings, in which the same reference numerals are used throughout the different drawings to designate the same or similar components. To prevent the present invention from getting vaguer in describing the present invention, detailed description of structures or functions known to the public shall be omitted.

FIG. 4 is a schematic view illustrating creating a new XML document by replacing a source XML document with structured and non-structured data

As shown in FIG. 4, the present invention relates to technology of implementing both structured data that is stored in a database and non-structured data that is stored in legacy documents, for example, stored in PDF, DOC, PPT documents, etc., in a dynamic Well Formed XML (eXtensible Markup Language) document using XML replacement technology. More specifically, the present invention relates to a method of implementing the structured and non-structured data in a well formed XML document by replacing an absolute path variable of a user-defined tag in the XML with a substitution value of the structured and non-structured data.

The present invention may quickly create a new XML document by a process of receiving structured and non-structured data as input from a user through previously designed web form document, and replacing the data by mapping the structured and non-structured data into a previously defined source XML document. In this case, the new XML document may be created by an automatic generation engine of XML document, which is run when the user inputs and stores the structured and non-structured data into the web form document.

FIG. 1 is a block diagram of a method of implementing structured and non-structured data in an XML document according to the present invention.

As illustrated in FIG. 1, a method of implementing structured and non-structured data in an XML document according to the present invention includes a step of designing a source HTML document (S10); a step of designing a source XML document (S20); a step of designing a web form document (S30); a step of creating an XSL document (S40); a step of inputting data (S50); a step of creating a new XML document (S60); and a step of displaying a new XML document (S70).

FIG. 5 is a schematic view illustrating a method of implementing structured and non-structured data in an XML document according to the present invention.

As shown in FIG. 5, the step of designing a source HTML document (S10) is a step for designing a source HTML document with a form tag that is an input field for receiving structured and non-structured data as input from a user.

The step of designing a source HTML document (S10) is a step for designing an empty form of HTML document without data, and specifically, a form tag of the source HTML document has a format in which data is not included. In the step of designing a web form document (S30) that will be described later, the well formed data format may be designated to the form tag.

The step of designing an XML source document (S20) is a step for designing a structured source XML document using user-defined tags.

In the step of designing an XML source document (S20), the XML document may store absolute path variables of the user-defined tags as user-defined tag values using an XML tree structure.

As shown in FIG. 5, the step of designing a web form document (S30) is a step for designing a web form document by mapping the absolute path variables of the user-defined tags, which are defined in the source XML document, to the source HTML document.

In this case, the web form document is an HTM document in which the absolute path variables of the user defined tags are mapped with the form tags of the source HTML document by designating data formats to the form tags, and the web form document may receive structured formal data and repeated non-structured data as input through the form tags.

As shown in FIG. 5, the step of creating an XSL document (S40) is a step for automatically creating an XSL document by converting the web form document using eXtensible Stylesheet Language Transformations (XSLT).

In this case, the XSL document may be connected to the web form document through the absolute path variables of the user-defined tags. As described above, the XSL document may be automatically created by Xstyler tool that is an automatic tool for generating an XSL document, which is operated on the computer system when a user saves the designed web form document.

The step of inputting data (S50) is a step for inputting structured and non-structured data into the web form document.

Concretely, in the step of inputting data (S50), the web form document can be opened on a web browser, and a user may input structured data and non-structured data into a structured data form tag and non-structured data form tag in the web form document, respectively, to create a new XML document.

As shown in FIG. 5, the step of creating a new XML document (S60) is a step for automatically creating a new XML document by converting the absolute path variables of the user-defined tags into the structured and non-structured data that are input to the web form document.

In the step of creating a new XML document (S60), the new XML document may be automatically created by an automatic generation engine of XML document run on the server when a user inputs and stores the structured and non-structured data into the web form document on the web browser. In this case, the automatic generation engine of XML document may be also run on the computer system that the user uses.

As shown in FIG. 5, the step of displaying a new XML document (S70) is a step for automatically displaying the content of the new XML document by merging the new XML document and the XSL document.

In other words, in the step of displaying a new XML document (S70), the content of the new XML document may be displayed in a form of various HTML documents including a web form document by merging the new XML document created in the step of creating a new XML document (S60) and the XSL document created in the step of creating an XSL document (S40). In this case, non-structured data included in the new XML document may be converted using a conversion rule, and then displayed as the content of the HTML document.

Hereinafter, exemplary embodiment of the present invention will be described in detail referring to accompanying drawings. Reference should now be made to the drawings, in which the same reference numerals are used throughout the different drawings to designate the same or similar components. To prevent the present invention from getting vaguer in describing the present invention, detailed description of structures or functions known to the public shall be omitted.

FIG. 4 is a schematic view illustrating creating a new XML document by replacing a source XML document with structured and non-structured data.

As shown in FIG. 4, the present invention relates to technology of implementing both structured data that is stored in a database and non-structured data that is stored in legacy documents, for example, stored in PDF, DOC, PPT documents, etc., in a dynamic Well Formed XML (eXtensible Markup Language) document using XML replacement technology. More specifically, the present invention relates to a method of implementing the structured and non-structured data in a well formed XML document by replacing an absolute path variable of a user-defined tag in the XML with a substitution value of the structured and non-structured data.

The present invention may quickly create a new XML document by a process of receiving structured and non-structured data as input from a user through previously designed web form document, and replacing the data by mapping the structured and non-structured data into a previously defined source XML document. In this case, the new XML document may be created by an automatic generation engine of XML document, which is run when the user input and store the structured and non-structured data into the web form document.

FIG. 1 is a block diagram of a method of implementing structured and non-structured data in an XML document according to the present invention.

As illustrated in FIG. 1, a method of implementing structured and non-structured data in an XML document according to the present invention includes a step of designing a source HTML document (S10); a step of designing a source XML document (S20); a step of designing a web form document (S30); a step of creating an XSL document (S40); a step of inputting data (S50); a step of creating a new XML document (S60); and a step of displaying a new XML document (S70).

FIG. 5 is a schematic view illustrating a method of implementing structured and non-structured data in an XML document according to the present invention.

As shown in FIG. 5, the step of designing a source HTML document (S10) is a step for designing a source HTML document with a form tag that is an input field for receiving structured and non-structured data as input from a user.

The step of designing a source HTML document (S10) is a step for designing an empty form of HTML document without data, and specifically, a form tag of the source HTML document has a format in which data is not included. In the step of designing a web form document (S30) that will be described later, the well formed data format may be designated to the form tag.

Concretely, the source HTML document may be designed using Xstyler tool run on the computer system. In the present invention, the Xstyler tool may be used to design not only the source HTML document but a source XML document and a web form document that will be described below. Also, the Xstyler tool may function as an automatic tool for generating an XSL document, which automatically creates an XSL document by XSLT-processing the web form document.

The step of designing an XML source document (S20) is a step for designing a structured source XML document using user-defined tags.

In the step of designing an XML source document (S20), the XML document may store absolute path variables of the user-defined tags as user-defined tag values using an XML tree structure.

FIG. 6 is a view illustrating a data structure of a source XML document according to the present invention.

Specifically, in the step of designing an XML source document (S20), the following XML document may be created from a source XML document that has a structure illustrated in FIG. 6. In this case, tags (a, b, c) with a child do not have absolute path variables, while tags (a1, a2, a3, b1, b2, b3, c1, c2, c3) without a child may have absolute path variables.

<root>  <a>   <a1>H_root/a/a1</a1>   <a2>H_root/a/a2</a2>   <a3>H_root/a/a3</a3>  </a>  <b>   <b1>H_root/a/b1</b1>   <b2>H_root/a/b2</b2>   <b3>H_root/a/b3</b3>  </b>  <c>   <c1>H_LIST_root/a/c1</c1>   <c2>H_LIST_root/a/c2</c2>   <c3>H_LIST_root/a/c3</c3>  </c> </root>

When designing the source XML document, if general data and repeated data, which are structured data of the source XML document, are written in the user-defined tag values, each type of data may be written in different notation in order to distinguish the general data and repeated data.

Specifically, when writing the general data and repeated data in the user-defined tag values, it is desirable that the general data is written in “H_” and the repeated data is written in “H_LIST”.

Also, when the structured data of the source XML document is repeated data, the repeated data may be written using an attribute in the user-defined tags of the source XML document.

Concretely, in the step of designing a source XML document (S20), when defining user-defined tags of the source XML document, it is desirable that the repeated data is written using an attribute, “repeat=y” to distinguish it from general data.

As described above, the following [Table 1] illustrates an example of the user-defined tag and tag values according to the data type of the source XML document defined in the step of designing a source XML document (S20).

TABLE 1 Data type Division Tag Tag Value General data <a1> H_root/a1 Repeated data repeat = “y” <c1 repeat = “y”> H_LIST_root/c/c1

As shown in FIG. 5, the step of designing a web form document (S30) is a step for designing a web form document by mapping the absolute path variables of the user-defined tags, which are defined in the source XML document, to the source HTML document.

In this case, the web form document is an HTM document in which the absolute path variables of the user defined tags are mapped with the form tags of the source HTML document by designating data formats to the form tags, and the web form document may receive structured formal data and repeated non-structured data as input through the form tags.

FIG. 2 is a block diagram of a step of designing a web form document according to the present invention.

Specifically, as illustrated in FIG. 2, the step of designing a web form document (S30) may include a structured data form tag design process (S31) and a non-structured data form tag design process (S32).

The structured data form tag design process (S31) is a process for designing structured data form tags that receive structured data as input, and the structured data form tags may be mapped into the absolute path variables of the user-defined tags defined in the source XML document.

FIG. 7 is a view illustrating a web form document according to the present invention, and FIG. 8 is a view illustrating a data format of and a source of a form tag in a web form document.

In the structured data form tag design process (S31), data types of the form tags in the source HTML document may be variously set.

For example, when the web form document is designed to have a structure illustrated in FIG. 7, the form tags may be set to have data types of Input Box, Teaxtarea, Checkbox, Radio Button, Select Box, and Repeat Table as illustrated in FIG. 8. In this case, the user-defined tag values mapped with the form tags of the web form document illustrated in FIG. 7 are as follows.

<root> <contents>  <personalInfo>   <name>H_root/contents/personalInfo/name</name>   <gender>H_root/contents/personalInfo/gender</gender>   <birthday>H_root/contents/personalInfo/birthday</bir thday>   <telephone>H_root/contents/personalInfo/telephone</t elephone>   <eMail>H_root/contents/personalInfo/eMail</eMail>   <address>H_root/contents/personalInfo/address</addre ss>   <career>H_root/contents/personalInfo/career</career>   <useXML>H_root/contents/personalInfo/useXML</useXML>   <useLanguage>H_root/contents/personalInfo/useLanguag e</useLanguage>   <memo>H_root/contents/personalInfo/memo</memo>   <photo>H_root/contents/personalInfo/photo</photo>  </personalInfo>  <familyInfo>   <relation repeat=“y”>H_LIST_root/contents/familyInfo/relation</relation>   <lastName  repeat=“y”>H_LIST_root/contents/familyInfo/lastName</last  Name>   <age  repeat=“y”>H_LIST_root/contents/familyInfo/age</age>   <job  repeat=“y”>H_LIST_root/contents/familyInfo/job</job>   <memo  repeat=“y”>H_LIST_root/contents/familyInfo/memo</memo>  </familyInfo> </contents> </root>

The non-structured data form tag design process (S32) is a process for designing non-structured data form tags that receive non-structured data as input, and the non-structured data form tags may be mapped into the absolute path variables of the user-defined tags defined in the source XML document.

Repeated non-structured data, which is input through the non-structured data form tags in the step of inputting data (S50) that will be described later, may be converted by a converting rule and stored in the user-defined tag values of the source XML document.

The following [Table 2] illustrates a converting rule for converting non-structured data, which is input to a web form document, to be stored in XML tags.

TABLE 2 HTML XML Tag < &lt; > &gt; &lt &amp;lt; &gt &amp;gt; & &amp; &nbsp; &#160;

As shown in FIG. 5, the step of creating an XSL document (S40) is a step for automatically creating an XSL document by XSLT-processing the web form document.

In this case, the XSL document may be connected to the web form document through the absolute path variables of the user-defined tags. As described above, the XSL document may be automatically created by Xstyler tool that is an automatic tool for generating an XSL document, which is operated on the computer system when a user saves the designed web form document.

FIG. 9 is a view illustrating a process of converting a web form document into an XSL document.

Specifically, as shown in FIG. 9, when XSLT-processing the web form document, the automatic tool for generating an XSL document may automatically create the XSL document by the process of creating XSL-Header; respectively converting Head and Body of the web form document; and creating XSL-Bottom.

FIG. 10 is a view illustrating a structure of an XSL document according to the present invention, and FIG. 11 is a view illustrating structured and non-structured data included in XSL body of FIG. 10. Also, FIG. 12 is a view illustrating a source code of XSL Head of an XSL document according to the present invention; FIG. 13 is a view illustrating a source code of XSL Body of an XSL document according to the present invention; and FIG. 14 is a view illustrating a source code of XSL Bottom of an XSL document according to the present invention.

As illustrated in FIG. 10, an XSL document created by the automatic tool for generating an XSL document may include XSL Head, XSL Body, and XSL Bottom. In this case, as shown in FIG. 11, the XSL Body may include structured formal data and repeated non-structured data. Also, the XSL Head, XSL Body, and XSL Bottom, which are included in the XSL document, may have a source code illustrated in FIGS. 12 to 14, respectively.

On the other hand, while creating an XSL document by converting the web form document, the automatic tool for generating an XSL document may convert Self Close Tags, which are included in the source code of the web form document, using a converting rule.

The following [Table 3] illustrates a converting rule for converting Self Close Tags of a web form document.

TABLE 3 HTML XML Tag <BR> <BR/> <LI> <LI/> <IMG . . . > <IMG . . . /> <EMBED . . . > <EMBED . . . /> <HR . . . > <HR . . . /> <INPUT . . . > <INPUT . . . /> <RARAM . . . > <RARAM . . . /> <AREA . . . > <AREA . . . /> <LINK . . . > <LINK . . . /> <META . . . > <META . . . />

FIG. 15 is a view illustrating a process of converting Self Close Tag of a web form document according to the present invention, and FIGS. 16 to 20 are views illustrating an example of converting a source of a web form document illustrated in FIG. 7.

The automatic tool for generating an XSL document may convert Self Close Tags of the web form document through a process illustrated in FIG. 15. In this case, the form tags in the web form document may be converted as illustrated in FIGS. 16 to 20.

The step of inputting data (S50) is a step for inputting structured and non-structured data into the web form document.

Concretely, in the step of inputting data (S50), the web form document can be opened on a web browser, and a user may input structured data and non-structured data into a structured data form tag and non-structured data form tag in the web form document, respectively, to create a new XML document.

As shown in FIG. 5, the step of creating a new XML document (S60) is a step for automatically creating a new XML document by converting the absolute path variables of the user-defined tags into the structured and non-structured data that are input to the web form document.

In the step of creating a new XML document (S60), the new XML document may be automatically created by an automatic generation engine of XML document run on the server when a user inputs and stores the structured and non-structured data into the web form document on the web browser. In this case, the automatic generation engine of XML document may be also run on the computer system that the user uses.

FIG. 3 is a block diagram of a step of creating a new XML document according to the present invention.

As shown in FIG. 3, the step of creating a new XML document (S60) may include a data substitution format setting process (S61), a data mapping process (S62), and a new XML document creating process (S63).

The data substitution format setting process (S61) is a process for setting a data substitution format by calculating data substitution value for the structured and non-structured data that is input into the web form document.

FIG. 21 is a classification map of a data substitution format.

As shown in FIG. 21, in the data substitution format setting process (S61), the data substitution format may include a structured data substitution format, which is for substitution of structured data, and a non-structured data substitution format, which is for substitution of non-structured data. In this case, the structured data substitution format or the non-structured data substitution format may include a general data substitution format and a repeated data substitution format.

FIG. 22 is a view illustrating a data substitution format according to the present invention.

Specifically, as shown in FIG. 22, the data substitution format may include a variable separator (##̂̂##), which is in between the absolute path variable of the user-defined tag and the value of the absolute path variable, for distinguishing the absolute path variable from the value of the absolute path variable; and a line separator (∥̂̂∥) at the end of the values of the absolute path variable for separating lines. In this case, the value of the absolute path variable may be comprised of the calculated substitution value of the structured and non-structured data.

In other words, the data substitution format may be divided as the following [Table 4], and the calculated substitution value of the structured and non-structured data may be illustrated as the following [Table 5].

TABLE 4 Data Division Example Structured General H_root/a/a1##{circumflex over ( )}{circumflex over ( )}##formal_data_value||{circumflex over ( )}{circumflex over ( )}|| Repeated H_LIST_root/c/c1##{circumflex over ( )}{circumflex over ( )}##formal_data_value||{circumflex over ( )}{circumflex over ( )}|| Non- General H_root/a/a1##{circumflex over ( )}{circumflex over ( )}##informal_data_value||{circumflex over ( )}{circumflex over ( )}|| structured repeated H_LIST_root/c/c1##{circumflex over ( )}{circumflex over ( )}##informal_data_value| |{circumflex over ( )}{circumflex over ( )}||

TABLE 5 Type Substitution value Formal_data_value John Kim Informal_data_value &lt;TABLE border=“1”&gt;&lt;TR&gt; &lt;TD&gt;informal Data &lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;

The data mapping process (S62) is a process for mapping the values of the absolute path variables of the source XML document into calculated substitution value of the structured and non-structured data.

The new XML document creating process (S63) is a process for creating a new XML document by saving the source XML document as the new XML document after replacing the values of the absolute path variables in the source XML document with the calculated substitution values of the structured and non-structured data.

FIG. 23 is a view illustrating a process of creating a new XML document using a data substitution format according to the present invention.

In other words, in the step of creating a new XML document (S60), as shown in FIG. 23, the automatic generation engine of XML document may automatically create the new XML document by the process of: setting data substitution formats by calculating substitution values of the structured and non-structured data; mapping the calculated substitution values of the structured and non-structured data into the values of the absolute path variables of the source XML document; and saving the source XML document in which the values of the absolute path variables are replaced with the calculated substitution values, as a new XML document.

As shown in FIG. 5, the step of displaying a new XML document (S70) is a step for automatically displaying the content of the new XML document by merging the new XML document and the XSL document.

In other words, in the step of displaying a new XML document (S70), the content of the new XML document may be displayed in a form of various HTML documents including a web form document by merging the new XML document created in the step of creating a new XML document (S60) and the XSL document created in the step of creating an XSL document (S40). In this case, non-structured data included in the new XML document may be converted using a conversion rule, and then displayed as the content of the HTML document.

The following [Table 6] illustrates a conversion rule for displaying non-structured data, which is stored in an XML tag, in an HTML document.

TABLE 6 XML Tag HTML &lt; < &gt; > &amp;lt; &lt; &amp;gt; &gt; &amp; & &amp;nbsp; &#160;

Hereinafter, a system for applying a method of implementing structured and non-structured data in an XML document according to the present invention will be described.

FIG. 24 is a block diagram of a system for application of the present invention.

As illustrated in FIG. 24, a system for applying a method of implementing structured and non-structured data in an XML document may include a client computer and a web server that is connected to the client computer through communications network.

In this case, by running Xsytler tool, the client computer may perform the steps, according to the present invention, including: the step of designing a source HTML document (S10); the step of designing a source XML document (S20); the step of designing a web form document (S30); and the step of creating an XSL document (S40), the Xstyler tool being a program for designing a source HTML document, a source XML document and a web form document, and for creating an XSL document associated with the web form document. Also, when through input devices of the client computer, a user inputs structured and non-structured data into the web form document opened on a web browser and saves the document, the web server may perform the steps, according to the present invention, including the step of creating a new XML document (S60) and the step of displaying a new XML document (S70), by running an automatic generation engine of XML document for creating a new XML document and displaying the new XML document.

As described above, although the embodiments of the method of implementing structured and non-structured data in an XML document according to the present invention has been disclosed referring to drawings for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying claims.

INDUSTRIAL APPLICABILITY

According to the present invention, using XML replacement technology, it is possible to quickly implement structured and non-structured data in a dynamic Well Formed eXtensible Markup Language document, thus the present invention may be effectively used in the computer application field. 

1. A method of implementing structured and non-structured data in an XML document, comprising the steps of: designing a source HTML document that contains a form tag; designing a structured source XML document using a user-defined tag; designing a web form document by mapping an absolute path variable of the user-defined tag into the source HTML document; automatically creating an XSL document by XSLT-processing the web form document; inputting structured and non-structured data into the web form document; automatically creating a new XML document by replacing the absolute path variable of the user-defined tag with the structured and non-structured data input in the web form document; and automatically displaying content of the new XML document by merging the new XML document and the XSL document.
 2. The method of claim 1, wherein in designing the source HTML document, the form tag is an empty form in which data is not contained.
 3. The method of claim 1, wherein in designing the structured source XML document, using an XML tree structure, the source XML document stores the absolute path variable of the user-defined tag as a user-defined tag value.
 4. The method of claim 1, wherein in designing the structured source XML document, when writing general data and repeated data, which are structured data of the source XML document, in a user-defined tag value, each type of data is written in different notation in order to distinguish the general data and the repeated data.
 5. The method of claim 1, wherein in designing the structured source XML document, when structured data of the source XML document is repeated data, the repeated data is written using an attribute in the user-defined tag of the source XML document.
 6. The method of claim 1, wherein in designing the web form document, the web form document is designed by mapping the absolute path variable of the user-defined tag into the form tag as a data format is designated to the form tag.
 7. The method of claim 6, wherein designing the web form document comprises: a structured data form tag design process for designing a structured data form tag that is mapped into the absolute path variable of the user-defined tag and receives the structured data as input; and a non-structured data form tag design process for designing a non-structured data form tag that is mapped into the absolute path variable of the user-defined tag and receives the non-structured data as input.
 8. The method of claim 1, wherein in automatically creating the XSL document, the XSL document is connected to the web form document through the absolute path variable of the user-defined tag.
 9. The method of claim 1, wherein in automatically creating the XSL document, the XSL document is automatically created by an automatic tool for generating an XSL document, which is run on a computer system, when the web form document is saved.
 10. The method of claim 1, wherein in automatically creating the new XML document, the new XML document is automatically created by an automatic generation engine of an XML document, which is run on a server, when structured data and non-structured data is input and stored into the web form document.
 11. The method of claim 1, wherein automatically creating the new XML document comprises: a data substitution format setting process for setting a data substitution format by calculating a substitution value of the structured and non-structured data; a data mapping process for mapping the calculated substitution value of the structured and non-structured data into a value of the absolute path variable of the source XML document; and a new XML document creating process for creating a new XML document by saving the XML source document as the new XML document after replacing the value of the absolute path variable of the source XML document with the calculated substitution value of the structured and non-structured data.
 12. The method of claim 11, wherein in the data substitution format setting process, the data substitution format includes a structured data substitution format or a non-structured data substitution format, and the structured data substitution format or the non-structured data substitution format includes a general data substitution format or a repeated data substitution format.
 13. The method of claim 12, wherein in the data substitution format setting process, the data substitution format includes a variable separator, which is in between the absolute path variable of the user defined tag and a value of the absolute path variable, for distinguishing the absolute path variable from the value of the absolute path variable.
 14. The method of claim 13, wherein in the data substitution format setting process, the value of the absolute path variable is the calculated substitution value of the structured and non-structured data.
 15. The method of claim 13, wherein in the data substitution format setting process, the data substitution format includes a line separator at the end of the value of the absolute path variable for separating lines. 